package com.database.character;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

//帖子类
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel("帖子类")
public class Post {
    @ApiModelProperty("帖子id")
    private Integer postId; //帖子id
    @ApiModelProperty("帖子内容")
    private String content; //帖子内容
    @ApiModelProperty("发布时间")
    private LocalDateTime createTime; //发布时间
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime; //修改时间
    @ApiModelProperty("发布者id")
    private Integer userId; //发布者id
    @ApiModelProperty("评论数")
    private Integer commentNum; //评论数
    @ApiModelProperty("点赞数")
    private Integer praiseNum; //点赞数
    @ApiModelProperty("收藏数")
    private Integer collectNum; //收藏数
    @ApiModelProperty("帖子标题")
    private String title; //帖子标题
    @ApiModelProperty("帖子内容的搜索字段")
    private String searchContent; //帖子内容的搜索字段
}
